<template>
  <div class="app-container">
    <div class="searchBox">
      <el-form :inline="true" :model="search" ref="searchForm">
        <el-form-item label="服务向导名称：" prop="name">
          <el-input v-model="search.name" placeholder="请输入内容"></el-input>
        </el-form-item>
        <el-form-item label="服务向导编码：" prop="code">
          <el-input v-model="search.code" name="code" placeholder="请输入内容"></el-input>
        </el-form-item>
        <el-form-item style="margin-top: -2px">
          <el-button type="primary" @click="searchQuery">查询</el-button>
          <el-button type="info" @click="search = {};searchQuery()">重置</el-button>
        </el-form-item>
      </el-form>
    </div>

    <qm-table
      ref="qmTable"
      :data="query"
      keyProp="id"
      menuType="text"
      :formOptions="{ labelWidth: '120px' }"
      useFormPage
      formRefs="basicFormRef,guideLinksFormRef,guideEnchiridionsRef"
      :formPage="{
        create: '/workflow/serviceGuide/create',
        view: '/workflow/serviceGuide/view',
        edit: '/workflow/serviceGuide/create'
            }"
    >
      <qm-table-column field="name" sortable>服务向导名称</qm-table-column>
      <qm-table-column field="code" sortable>服务向导编码</qm-table-column>
      <qm-table-column field="isEnabled" fieldtype="enabledisable" sortable width="100px">是否启用</qm-table-column>
    </qm-table>
  </div>
</template>

<script>
import Controller from "@/libs/framework/controller";

export default class Instance extends Controller {
  onBeforeInit() {
    this.urls = {
      query: [{ url: "/workflow/serviceGuide/query", method: "post" }],
      save: "/workflow/serviceGuide/save",
      delete: "/workflow/serviceGuide/delete",
      entity: "/workflow/serviceGuide/getEntity",
      model: "/workflow/serviceGuide/getListModel"
    };
  }

  mixin() {
    return {
      components: {},

      data() {
        return {};
      },
      methods: {}
    };
  }
}
</script>

<style scoped lang="scss">
</style>

